package com.dv.lession01;

import java.net.InetAddress;
import java.net.UnknownHostException;

//测试
public class TestInetAddress {
    public static void main(String[] args) {
        InetAddress inetAddress1 = null;
        try {
            inetAddress1 = InetAddress.getByName("www.baidu.com");
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        System.out.println(inetAddress1);
    }
}
